package com.ruoyi.core.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * b批量客户端用户记录数据
 *
 * @author ruoyi
 * @date 2020-09-28
 */
public class BatchClientUserSummary {

    /**
     * 激活码批次id
     */
    private Long id;

    /**
     * 激活码数量
     */
    @Excel(name = "客户端用户数量")
    private Long quantity;

    /**
     * 时效片段
     */
    @Excel(name = "时效(天)")
    private Long segment;

    /**
     * 时效单位
     */
    private SegmentTimeUnit timeUnit;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "新增时间",dateFormat="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 权限ID数量
     */
    private String productIds;

    private Integer status;

    private String remark;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

    public void setSegment(Long segment) {
        this.segment = segment;
    }

    public Long getSegment() {
        return segment;
    }

    public SegmentTimeUnit getTimeUnit() {
        return timeUnit;
    }

    public void setTimeUnit(SegmentTimeUnit timeUnit) {
        this.timeUnit = timeUnit;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getProductIds() {
        return productIds;
    }

    public void setProductIds(String productIds) {
        this.productIds = productIds;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("quantity", getQuantity()).append("segment", getSegment())
                                                                        .append("timeUnit", getTimeUnit()).append("createTime", getCreateTime()).toString();
    }
}
